翻訳と辞書
Words near each other
・ Wrapped in Ribbon
・ Wrapped Lévy distribution
・ Wrapped normal distribution
・ Wrapped Tight
・ Wrapped Up
・ Wrapped Up Good
・ Wrapped Up in Pinstripes
・ Wrapped Up in You
・ Wrapper
・ Wrapper (clothing)
・ Wrapper (data mining)
・ Wrapper (philately)
・ Wrapper function
・ Wrapper library
・ Wrapping
Wrapping (graphics)
・ Wrapping (overflow)
・ Wrapping Paper
・ Wrapping tissue
・ Wrapports
・ WRAR
・ WRAR (AM)
・ WRAR-FM
・ WRAS
・ WRAS (FM)
・ Wrasse
・ Wrasse (disambiguation)
・ Wrasse Records
・ WRAT
・ Wrath (2011 film)


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Wrapping (graphics) : ウィキペディア英語版
Wrapping (graphics)

In computer graphics, wrapping is the process of limiting a position to an area. A good example of wrapping is wallpaper, a single pattern repeated indefinitely over a wall. Wrapping is used in 3D computer graphics to repeat a texture over a polygon, eliminating the need for large textures or multiple polygons.
To wrap a position ''x'' to an area of width ''w'', calculate the value x' \equiv x \pmod.
==Implementation==
For computational purposes the wrapped value ''x of ''x'' can be expressed as
:x' = x - \lfloor (x - x_) / (x_ - x_) \rfloor
* (x_ - x_)
where x_ is the highest value in the range, and x_ is the lowest value in the range.
Pseudocode for wrapping of a value to a range other than 0-1 is
function wrap(X, Min, Max: Real): Real;
X := X - Int((X - Min) / (Max - Min))
* (Max - Min);
if X < 0 then //This corrects the problem caused by using Int instead of Floor
X := X + Max - Min;
return X;
Pseudocode for wrapping of a value to a range of 0-1 is
function wrap(X: Real): Real;
X := X - Int(X);
if X < 0 then
X := X + 1;
return X;
Pseudocode for wrapping of a value to a range of 0-1 without branching is,
function wrap(X: Real): Real;
return ((X mod 1.0) + 1.0) mod 1.0;

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Wrapping (graphics)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.